-
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* switch to pyproject * fix compatibility between requirements files * add pointless setup.py, fix coverage
- Loading branch information
1 parent
593a61b
commit dbb16b5
Showing
11 changed files
with
104 additions
and
84 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
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 was deleted.
Oops, something went wrong.
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,4 @@ | ||
from .cli import cli | ||
|
||
if __name__ == '__main__': | ||
cli() |
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,5 +1,2 @@ | ||
__all__ = ['VERSION'] | ||
|
||
# version is set automatically in CI before release, | ||
# see https://gist.github.com/samuelcolvin/da2f521da5d2195fbfd65da3b8f58589 | ||
VERSION = '0.0.dev0' | ||
# Version here is used for the package version via the `[tool.hatch.version]` section of `pyproject.toml`. | ||
VERSION = '0.24.0' |
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,4 +1,4 @@ | ||
-r ./docs.txt | ||
-r ./linting.txt | ||
-r ./testing.txt | ||
-r ./setup.txt | ||
-r ./pyproject.txt |
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 |
---|---|---|
@@ -1,66 +1,28 @@ | ||
from pathlib import Path | ||
import sys | ||
|
||
sys.stderr.write( | ||
""" | ||
=============================== | ||
Unsupported installation method | ||
=============================== | ||
arq no longer supports installation with `python setup.py install`. | ||
Please use `python -m pip install .` instead. | ||
""" | ||
) | ||
sys.exit(1) | ||
|
||
from importlib.machinery import SourceFileLoader | ||
from setuptools import setup | ||
|
||
description = 'Job queues in python with asyncio and redis' | ||
readme = Path(__file__).parent / 'README.md' | ||
if readme.exists(): | ||
long_description = readme.read_text() | ||
else: | ||
long_description = description + '.\n\nSee https://arq-docs.helpmanual.io/ for documentation.' | ||
# avoid loading the package before requirements are installed: | ||
version = SourceFileLoader('version', 'arq/version.py').load_module() | ||
# The below code will never execute, however GitHub is particularly | ||
# picky about where it finds Python packaging metadata. | ||
# See: https://github.com/github/feedback/discussions/6456 | ||
# | ||
# To be removed once GitHub catches up. | ||
|
||
setup( | ||
name='arq', | ||
version=version.VERSION, | ||
description=description, | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Environment :: Console', | ||
'Framework :: AsyncIO', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Information Technology', | ||
'Intended Audience :: System Administrators', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: Unix', | ||
'Operating System :: POSIX :: Linux', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3 :: Only', | ||
'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', | ||
'Topic :: Internet', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
'Topic :: System :: Clustering', | ||
'Topic :: System :: Distributed Computing', | ||
'Topic :: System :: Monitoring', | ||
'Topic :: System :: Systems Administration', | ||
], | ||
python_requires='>=3.7', | ||
author='Samuel Colvin', | ||
author_email='s@muelcolvin.com', | ||
url='https://github.com/samuelcolvin/arq', | ||
license='MIT', | ||
packages=['arq'], | ||
package_data={'arq': ['py.typed']}, | ||
zip_safe=True, | ||
entry_points=""" | ||
[console_scripts] | ||
arq=arq.cli:cli | ||
""", | ||
install_requires=[ | ||
'redis[hiredis]>=4.2.0', | ||
'click>=8.0', | ||
'typing-extensions>=4.1.0', | ||
], | ||
extras_require={ | ||
'watch': ['watchfiles>=0.16'], | ||
} | ||
) |