Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

64 changes: 23 additions & 41 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,46 +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",
"build<2",
"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:
Expand All @@ -61,12 +24,31 @@
maintainer_email="andreas.motl@ip-tools.org",
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",
Expand Down