-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also, inline requirements again, because apparently, Dependabot does not pick them up.
- Loading branch information
Showing
2 changed files
with
23 additions
and
42 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 |
---|---|---|
@@ -1,45 +1,9 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
import os | ||
import sys | ||
from codecs import open | ||
from os import path | ||
|
||
from setuptools import setup | ||
from versioningit import get_cmdclasses | ||
|
||
if sys.argv[-1] == "publish": | ||
# FIXME: S605 Starting a process with a shell: seems safe, but may be changed in the future; consider rewriting without `shell` | ||
# FIXME: S607 Starting a process with a partial executable path | ||
os.system("python setup.py sdist upload") # noqa: S605, S607 | ||
sys.exit() | ||
|
||
packages = ["epo_ops"] | ||
|
||
requires = [ | ||
"dogpile.cache<1.2", | ||
"importlib-metadata; python_version<'3.8'", | ||
"python-dateutil<2.9", | ||
"requests>=2.27,<3", | ||
"six<2", | ||
] | ||
extras = { | ||
"develop": [ | ||
"black<24", | ||
"ruff==0.0.285; python_version >= '3.7'", | ||
"twine<5", | ||
"wheel<1", | ||
], | ||
"test": [ | ||
"pytest<8", | ||
"pytest-cache<2", | ||
"pytest-cov<4.2", | ||
"python-dotenv<0.20", | ||
"responses<0.24", | ||
], | ||
} | ||
|
||
here = path.abspath(path.dirname(__file__)) | ||
|
||
with open(path.join(here, "README.md"), encoding="utf-8") as f: | ||
|
@@ -60,12 +24,31 @@ | |
maintainer_email="[email protected]", | ||
url="https://github.com/ip-tools/python-epo-ops-client", | ||
download_url="https://pypi.org/project/python-epo-ops-client/#files", | ||
packages=packages, | ||
packages=["epo_ops"], | ||
package_dir={"epo_ops": "epo_ops"}, | ||
include_package_data=True, | ||
install_requires=requires, | ||
extras_require=extras, | ||
tests_require=extras["test"], | ||
install_requires=[ | ||
"dogpile.cache<1.2", | ||
"importlib-metadata; python_version<'3.8'", | ||
"python-dateutil<2.9", | ||
"requests>=2.27,<3", | ||
"six<2", | ||
], | ||
extras_require={ | ||
"develop": [ | ||
"black<24", | ||
"ruff==0.0.285; python_version >= '3.7'", | ||
"twine<5", | ||
"wheel<1", | ||
], | ||
"test": [ | ||
"pytest<8", | ||
"pytest-cache<2", | ||
"pytest-cov<4.2", | ||
"python-dotenv<0.20", | ||
"responses<0.24", | ||
], | ||
}, | ||
zip_safe=False, | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
|