File: setup.py

package info (click to toggle)
pymonoprice 0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 136 kB
  • sloc: python: 641; makefile: 2
file content (22 lines) | stat: -rwxr-xr-x 392 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python

import os
import sys

VERSION = '0.5'

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup


if sys.argv[-1] == 'publish':
    os.system('python3 setup.py sdist && twine upload dist/*')
    sys.exit()


setup(
    version=VERSION,
    download_url='https://github.com/etsinko/pymonoprice/archive/{}.tar.gz'.format(VERSION),
)