Skip to content

Commit d894eb6

Browse files
committed
Update setup.py to allow deployments to PyPI - #27
1 parent f2afea8 commit d894eb6

3 files changed

Lines changed: 51 additions & 26 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ dist
66
build/
77
doc/_build/
88
venv/
9+
/AUTHORS
10+
/ChangeLog

setup.cfg

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[metadata]
2+
# 'odata' currently clashes with github.com/odatapy/odata which is 404 :-/
3+
name = odata
4+
version = 0.3
5+
license = MIT
6+
7+
summary = A simple library for read/write access to OData services.
8+
long-description = file: README.md
9+
long-description-content-type = text/markdown
10+
author = Tuomas Mursu
11+
author-email = tuomas.mursu@kapsi.fi
12+
home-page = https://github.com/tuomur/python-odata
13+
14+
require =
15+
requests>=2.0
16+
python-dateutil
17+
enum-compat
18+
19+
tests_require =
20+
responses
21+
22+
setup_require =
23+
pbr>=1.8
24+
# sphinx>=1.5
25+
26+
classifier =
27+
# 'Development Status :: 4 - Beta', # Tuomas to make this call :-)
28+
Environment :: Web Environment
29+
Intended Audience :: Developers
30+
License :: OSI Approved :: MIT License
31+
Operating System :: OS Independent
32+
Programming Language :: Python
33+
Programming Language :: Python :: 3
34+
Programming Language :: Python :: 3.4
35+
Programming Language :: Python :: 3.5
36+
Programming Language :: Python :: 3.6
37+
Topic :: Database
38+
Topic :: Internet :: WWW/HTTP
39+
Topic :: Internet :: WWW/HTTP :: Dynamic Content
40+
Topic :: Software Development :: Libraries
41+
42+
[files]
43+
packages =
44+
odata
45+
46+
[wheel]
47+
universal = 1

setup.py

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
32
import sys
4-
from setuptools import setup, find_packages
5-
6-
requires = [
7-
'requests>=2.0',
8-
'python-dateutil',
9-
]
10-
11-
# support for enums from pypi when on older python
12-
if sys.version_info < (3, 4):
13-
requires.append('enum34')
14-
15-
tests_require = (
16-
'responses',
17-
)
3+
from setuptools import setup
184

19-
setup(
20-
name='odata',
21-
version='0.3',
22-
description='A simple library for read/write access to OData services.',
23-
license='MIT',
24-
author='Tuomas Mursu',
25-
author_email='tuomas.mursu@kapsi.fi',
26-
install_requires=requires,
27-
tests_require=tests_require,
28-
packages=find_packages(),
29-
)
5+
setup(pbr=True)

0 commit comments

Comments
 (0)