Skip to content

Commit

Permalink
removed PyPI installation
Browse files Browse the repository at this point in the history
  • Loading branch information
dhuser committed Apr 26, 2018
1 parent 88aaac7 commit cbba87e
Showing 1 changed file with 1 addition and 43 deletions.
44 changes: 1 addition & 43 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from shutil import rmtree

from setuptools import find_packages, setup, Command

Expand All @@ -13,39 +11,6 @@
exec(f.read())


class PublishCommand(Command):
"""Support setup.py publish."""

description = 'Build and publish the package.'
user_options = []

@staticmethod
def status(s):
"""Prints things in bold."""
print('\033[1m{0}\033[0m'.format(s))

def initialize_options(self):
pass

def finalize_options(self):
pass

def run(self):
try:
self.status('Removing previous builds…')
rmtree(os.path.join(here, 'dist'))
except (OSError, IOError):
pass

self.status('Building Source and Wheel (universal) distribution…')
os.system('{0} setup.py sdist bdist_wheel --universal'.format(sys.executable))

self.status('Uploading the package to PyPi via Twine…')
os.system('twine upload dist/*')

sys.exit()


class TestCommand(Command):
description = 'Run Unit tests.'
user_options = []
Expand Down Expand Up @@ -85,13 +50,7 @@ def run(self):
'alembic',
'apscheduler'
],
packages=['smartvadhis2'],
entry_points={
'console_scripts': [
'smartva-dhis2 = smartvadhis2.run:launch',
'smartva-dhis2-cli = smartvadhis2.cli:main'
]
},
packages=find_packages(),
classifiers=[
# Trove classifiers
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand All @@ -102,7 +61,6 @@ def run(self):
'Programming Language :: Python :: 3.6'
],
cmdclass={
'publish': PublishCommand,
'test': TestCommand
},
)

0 comments on commit cbba87e

Please sign in to comment.