Skip to content

Commit

Permalink
Add packaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjuju committed Apr 2, 2019
1 parent f011d37 commit 4a1e3d4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
*.conf
**/__pycache__/
.pypirc
build/
dist/
powa_collector.egg-info/
33 changes: 33 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import setuptools

__VERSION__ = None
with open("powa_collector/__init__.py", "r") as fh:
for line in fh:
if line.startswith('__VERSION__'):
__VERSION__ = line.split('=')[1].replace("'", '').strip()
break

requires = ['psycopg2']

setuptools.setup(
name="powa-collector",
version=__VERSION__,
author="powa-team",
license='Postgresql',
author_email="[email protected]",
description="PoWA collector, a collector for performing remote snapshot with PoWA",
long_description="See https://powa.readthedocs.io/",
long_description_content_type="text/markdown",
url="https://powa.readthedocs.io/",
packages=setuptools.find_packages(),
install_requires=requires,
classifiers=[
"Development Status :: 4 - Beta"
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: PostgreSQL License",
"Operating System :: OS Independent",
"Intended Audience :: System Administrators",
"Topic :: Database :: Front-Ends"
],
)

0 comments on commit 4a1e3d4

Please sign in to comment.