-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ezra Peisach
committed
Feb 18, 2025
1 parent
eba4243
commit dc09b11
Showing
3 changed files
with
75 additions
and
132 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[bdist_wheel] | ||
# use py2.py3 tag for pure-python dist: | ||
universal=1 | ||
|
||
[metadata] | ||
description-file = README.md | ||
|
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,68 @@ | ||
# File: setup.py | ||
# Date: 6-Oct-2018 | ||
# | ||
# Update: | ||
# | ||
import re | ||
|
||
from setuptools import find_packages | ||
from setuptools import setup | ||
import sys | ||
|
||
if sys.version_info[0] < 3: | ||
from io import open as open | ||
|
||
packages = [] | ||
thisPackage = "wwpdb.utils.message_queue" | ||
|
||
with open("wwpdb/utils/message_queue/__init__.py", "r", encoding="utf-8") as fd: | ||
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) | ||
|
||
if not version: | ||
raise RuntimeError("Cannot find version information") | ||
|
||
setup( | ||
name=thisPackage, | ||
version=version, | ||
description="wwPDB message queue support", | ||
long_description="See: README.md", | ||
author="Ezra Peisach", | ||
author_email="[email protected]", | ||
url="https://github.com/rcsb/py-wwpdb_utils_message_queue", | ||
# | ||
license="Apache 2.0", | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
# 'Development Status :: 5 - Production/Stable', | ||
"Intended Audience :: Developers", | ||
"Natural Language :: English", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
], | ||
entry_points={"console_scripts": []}, | ||
# | ||
install_requires=["wwpdb.utils.config", "pika~=1.1", "wwpdb.utils.detach"], | ||
packages=find_packages(exclude=["wwpdb.utils.tests-message_queue", "mock-data", "tests.*"]), | ||
package_data={ | ||
# If any package contains *.md or *.rst ... files, include them: | ||
"": ["*.md", "*.rst", "*.txt", "*.cfg"], | ||
}, | ||
# | ||
# These basic tests require no database services - | ||
test_suite="wwpdb.utils.tests-message_queue", | ||
tests_require=["tox", "wwpdb.utils.testing"], | ||
# | ||
# Not configured ... | ||
extras_require={ | ||
"dev": ["check-manifest"], | ||
"test": ["coverage"], | ||
}, | ||
# Added for | ||
command_options={"build_sphinx": {"project": ("setup.py", thisPackage), "version": ("setup.py", version), "release": ("setup.py", version)}}, | ||
# This setting for namespace package support - | ||
zip_safe=False, | ||
) |