-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from davidlatwe/refactor-setup
use setup.cfg
- Loading branch information
Showing
3 changed files
with
71 additions
and
53 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
# Minimum requirements for the build system to execute. | ||
requires = ["setuptools", "wheel"] # PEP 508 specifications. |
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,66 @@ | ||
[metadata] | ||
name = montydb | ||
version = attr: montydb.version.__version__ | ||
description = Monty, Mongo tinified. MongoDB implemented in Python ! | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/davidlatwe/montydb | ||
author = davidlatwe | ||
author_email = [email protected] | ||
maintainer = davidlatwe | ||
maintainer_email = [email protected] | ||
license = BSD-3-Clause | ||
license_file = LICENSE | ||
platforms = any | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Intended Audience :: Developers | ||
Intended Audience :: Education | ||
License :: OSI Approved :: BSD License | ||
Operating System :: OS Independent | ||
Programming Language :: Python :: 2 | ||
Programming Language :: Python :: 2.7 | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Programming Language :: Python :: Implementation :: PyPy | ||
Topic :: Utilities | ||
Topic :: Database | ||
keywords = monty montydb mongo mongodb pymongo database | ||
project_urls = | ||
Source=https://github.com/davidlatwe/montydb | ||
Tracker=https://github.com/davidlatwe/montydb/issues | ||
|
||
[options] | ||
zip_safe = true | ||
packages = find: | ||
include_package_data = true | ||
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* | ||
install_requires = | ||
tests_require = | ||
pytest-cov | ||
pymongo | ||
lmdb | ||
|
||
[options.packages.find] | ||
exclude = | ||
tests | ||
|
||
[options.entry_points] | ||
|
||
[options.package_data] | ||
|
||
[options.extras_require] | ||
bson = | ||
pymongo | ||
lmdb = | ||
lmdb | ||
|
||
[sdist] | ||
formats = gztar | ||
|
||
[bdist_wheel] | ||
universal = true |
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,54 +1,3 @@ | ||
import os | ||
import imp | ||
from setuptools import setup, find_packages | ||
|
||
|
||
version_file = os.path.abspath("montydb/version.py") | ||
version_mod = imp.load_source("version", version_file) | ||
version = version_mod.version | ||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
setup( | ||
name="montydb", | ||
version=version, | ||
packages=find_packages(exclude=("tests", "tests.*")), | ||
|
||
# development metadata | ||
zip_safe=True, | ||
|
||
# metadata for upload to PyPI | ||
author="davidlatwe", | ||
author_email="[email protected]", | ||
description="MongoDB's unofficial Python implementation.", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
keywords=["monty", "montydb", "mongo", "mongodb", "pymongo"], | ||
url="https://github.com/davidlatwe/montydb", | ||
license="BSD-3-Clause", | ||
python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", | ||
classifiers=( | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 2", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.3", | ||
"Programming Language :: Python :: 3.4", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Database", | ||
), | ||
install_requires=( | ||
), | ||
tests_require=( | ||
"pytest-cov", | ||
"pymongo", | ||
"lmdb", | ||
), | ||
) | ||
from setuptools import setup | ||
setup() |