From 226dfdfb0c1cf57fcda5c92911656e5303fa5708 Mon Sep 17 00:00:00 2001 From: v1j1 Date: Thu, 31 Oct 2019 16:34:29 -0400 Subject: [PATCH] adding artifact --- requirements.txt | 1 + setup.py | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 setup.py diff --git a/requirements.txt b/requirements.txt index dac9f82..65e2701 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,4 @@ MarkupSafe==1.1.0 Werkzeug==0.14.1 xmlrunner==1.7.7 wheel==0.32.2 +setuptools=40.7.3 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..4033d0e --- /dev/null +++ b/setup.py @@ -0,0 +1,47 @@ +import os +import io +from setuptools import setup, find_packages +from os import path +from io import open + +setup( + # This is the name of your project. The first time you publish this + # package, this name will be registered for you. It will determine how + # users can install this project, e.g.: + # + # $ pip install sampleproject + # + # And where it will live on PyPI: https://pypi.org/project/sampleproject/ + # + # There are some restrictions on what makes a valid project name + # specification here: + # https://packaging.python.org/specifications/core-metadata/#name + name='SimpleRestApp', # Required + + +# To print absolute path on your system +# os.path.abspath('.') + +# To print files and directories in the current directory +# on your system +# os.listdir('.') + + + # Versions should comply with PEP 440: + # https://www.python.org/dev/peps/pep-0440/ + # + # For a discussion on single-sourcing the version across setup.py and the + # project code, see + # https://packaging.python.org/en/latest/single_source_version.html + version='1.3.0', # Required + #def __path(filename): + #return os.path.join(os.path.dirname(__file__), + # filename) + + build = 0 + + if os.path.exists(__path('build.info')): + build = open(__path('build.info')).read().strip() + + version= '0.6.{}'.format(build) + )