Skip to content

Commit 2755fc0

Browse files
committed
setup: Move metadata to setup.cfg
1 parent 0aecb63 commit 2755fc0

File tree

4 files changed

+32
-19
lines changed

4 files changed

+32
-19
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*.py[cod]
55
*.so
66
*.sqlite3
7+
/.eggs
78
.coverage
89
.idea
910
.installed.cfg

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include README.rst
2+
include LICENSE

setup.cfg

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
[metadata]
2+
name = hayes
3+
version = 0.0.5
4+
description = Hayes -- Simpler Elasticsearch for Django
5+
long_description = file: README.rst
6+
keywords = elastictsearch, django
7+
url = https://github.com/andersinno/hayes/
8+
maintainer = Anders Innovations
9+
maintainer_email = [email protected]
10+
license = MIT
11+
license_file = LICENSE
12+
platforms = any
13+
14+
[options]
15+
include_package_data = True
16+
packages = find:
17+
install_requires =
18+
requests>=1.0
19+
six>=1.9.0,<2.0
20+
zip_safe = False
21+
22+
[options.packages.find]
23+
exclude = tests, tests.*, hayes_tests, hayes_tests.*, hayes_demo, hayes_demo.*
24+
125
[bdist_wheel]
226
universal = 1
327

setup.py

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
1-
# coding=utf-8
2-
from setuptools import setup
1+
import setuptools
32

4-
requirements = [
5-
line.decode("UTF-8")
6-
for line
7-
in open("requirements.txt", "rb")
8-
if line.strip() and not line.startswith(b"#")
9-
]
10-
11-
setup(
12-
name='hayes',
13-
version='0.0.5',
14-
packages=['hayes', 'hayes.analysis', 'hayes.ext', 'hayes.django_interop', 'hayes.search'],
15-
license='MIT',
16-
long_description="n/a",
17-
maintainer="Anders Innovations",
18-
maintainer_email="[email protected]",
19-
install_requires=requirements
20-
)
3+
if __name__ == '__main__':
4+
setuptools.setup(
5+
setup_requires=['setuptools>=34.0', 'setuptools-gitver'],
6+
gitver=True)

0 commit comments

Comments
 (0)