-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use trusted publishing for pypi (#57)
* feat: use trusted publishing for pypi * feat: switch to pyproject.toml * fix: replace np.NAN with np.nan * fix: flake8 configuration * fix: remove numpy types with underscores * fix
- Loading branch information
1 parent
2eff01c
commit 1d7a9a5
Showing
12 changed files
with
113 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[flake8] | ||
show-source = True | ||
max-complexity = 10 | ||
hang-closing = False | ||
max-line-length = 88 | ||
extend-select = | ||
B950 | ||
|
||
extend-ignore = | ||
E203 | ||
E501 | ||
|
||
extend-exclude = | ||
.git | ||
__pycache__ | ||
build | ||
dist | ||
doc | ||
|
||
per-file-ignores = | ||
__init__.py: F401 | ||
gutenTAG/api/*: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,6 +143,10 @@ jobs: | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
needs: [build-source-distribution, build-manylinux-wheels] | ||
runs-on: ubuntu-latest | ||
environment: release | ||
permissions: | ||
# IMPORTANT: this permission is mandatory for trusted publishing | ||
id-token: write | ||
|
||
steps: | ||
- name: Download packages | ||
|
@@ -154,7 +158,4 @@ jobs: | |
find dist -type f -exec mv {} dist/ \; | ||
find dist/* -type d -exec rmdir {} \; || true | ||
- name: Publish package to PyPi | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
uses: pypa/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__: str = "1.4.1" | ||
__version__: str = "1.4.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
[project] | ||
name = "timeeval-GutenTAG" | ||
description = "A good Timeseries Anomaly Generator." | ||
license = {file="LICENSE"} | ||
authors= [ | ||
{"name" = "Phillip Wenig", email = "[email protected]"}, | ||
{"name" = "Sebastian Schmidl", email = "[email protected]"} | ||
] | ||
classifiers=[ | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Typing :: Typed", | ||
"Topic :: Software Development", | ||
"Topic :: Scientific/Engineering", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: Developers", | ||
] | ||
dynamic = ["readme", "version", "requires-python", "scripts", "dependencies"] | ||
|
||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.coverage.run] | ||
branch = false | ||
parallel = true | ||
omit = ["**/__main__.py"] | ||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
"pragma: no cover", | ||
"raise NotImplementedError", | ||
"\\.\\.\\.", | ||
"def __repr__", | ||
"pass", | ||
"if __name__ == .__main__.:", | ||
] | ||
fail_under = 80 | ||
skip_covered = true | ||
sort = "Cover" | ||
|
||
[tool.mypy] | ||
python_version = "3.9" | ||
show_error_codes = true | ||
|
||
[[tool.mypy.overrides]] | ||
module = [ | ||
"sklearn.*", | ||
"matplotlib.*", | ||
"pandas.*", | ||
"tqdm.*", | ||
"psutil.*", | ||
"prts.*", | ||
"statsmodels.*", | ||
"joblib.*", | ||
"numpyencoder.*", | ||
"scipy.*", | ||
"neurokit2.*" | ||
] | ||
ignore_missing_imports = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,28 +108,9 @@ def run(self): | |
setup( | ||
name=f"timeeval-{PYTHON_NAME}", | ||
version=VERSION, | ||
description="A good Timeseries Anomaly Generator.", | ||
long_description=README, | ||
long_description_content_type="text/markdown", | ||
author="Phillip Wenig and Sebastian Schmidl", | ||
author_email="[email protected]", | ||
url="https://github.com/TimeEval/gutentag", | ||
license="MIT", | ||
classifiers=[ | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Typing :: Typed", | ||
"Topic :: Software Development", | ||
"Topic :: Scientific/Engineering", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: Developers", | ||
], | ||
packages=find_packages(exclude=("tests", "tests.*")), | ||
package_data={"gutenTAG": ["py.typed", "config/schema/*"]}, | ||
install_requires=REQUIRED, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters