From d357796e8972fb289f7baa39142cb97ae2dbb747 Mon Sep 17 00:00:00 2001 From: tejas Date: Fri, 2 Dec 2022 13:58:36 +0100 Subject: [PATCH] refactor --- admin/environment.yml | 7 ------- admin/setup.py | 2 -- {admin => aws_admin}/__init__.py | 0 {admin => aws_admin}/admin.py | 0 aws_admin/version.py | 1 + setup.py | 12 ++++++++++-- 6 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 admin/environment.yml delete mode 100644 admin/setup.py rename {admin => aws_admin}/__init__.py (100%) rename {admin => aws_admin}/admin.py (100%) create mode 100644 aws_admin/version.py diff --git a/admin/environment.yml b/admin/environment.yml deleted file mode 100644 index 1905be8..0000000 --- a/admin/environment.yml +++ /dev/null @@ -1,7 +0,0 @@ -name: aws-admin -channels: - - conda-forge -dependencies: - - boto3 - - pytest >=4.4 - - moto >=3.0.5 \ No newline at end of file diff --git a/admin/setup.py b/admin/setup.py deleted file mode 100644 index a4f49f9..0000000 --- a/admin/setup.py +++ /dev/null @@ -1,2 +0,0 @@ -import setuptools -setuptools.setup() diff --git a/admin/__init__.py b/aws_admin/__init__.py similarity index 100% rename from admin/__init__.py rename to aws_admin/__init__.py diff --git a/admin/admin.py b/aws_admin/admin.py similarity index 100% rename from admin/admin.py rename to aws_admin/admin.py diff --git a/aws_admin/version.py b/aws_admin/version.py new file mode 100644 index 0000000..e654b31 --- /dev/null +++ b/aws_admin/version.py @@ -0,0 +1 @@ +version='0.1.0' \ No newline at end of file diff --git a/setup.py b/setup.py index a4f49f9..44453bd 100644 --- a/setup.py +++ b/setup.py @@ -1,2 +1,10 @@ -import setuptools -setuptools.setup() +from setuptools import setup, find_packages +packages = find_packages(exclude=["test", "test.*"]) +version = None +with open('aws_admin/version.py') as f: + exec(f.read()) +setup( + name="aws_admin", + version=version, + packages=packages +)