Skip to content

Commit

Permalink
Move away from hatchling
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezra Peisach committed Feb 18, 2025
1 parent eba4243 commit dc09b11
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 132 deletions.
132 changes: 0 additions & 132 deletions pyproject.toml

This file was deleted.

7 changes: 7 additions & 0 deletions setup.cfg
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

68 changes: 68 additions & 0 deletions setup.py
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,
)

0 comments on commit dc09b11

Please sign in to comment.