From ec22897c96359666e30cd30fd6ae7618d32232f4 Mon Sep 17 00:00:00 2001 From: Domenico Testa Date: Sun, 2 Aug 2020 22:09:14 +0200 Subject: [PATCH] Removing setuptools and pip files. Updating README to use `poetry`. --- README.md | 8 ++------ requirements.txt | 12 ------------ setup.py | 48 ------------------------------------------------ 3 files changed, 2 insertions(+), 66 deletions(-) delete mode 100644 requirements.txt delete mode 100644 setup.py diff --git a/README.md b/README.md index 0c3afd8..480af02 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Make sure you have installed the latest CDK version for your platform, following Install the required dependencies (you can use a virtualenv for this), with the following command: - pip install -r requirements.txt + poetry install The deployment can be then initiated, from the project root directory, with the following command: @@ -64,13 +64,9 @@ If you need more details about creating a public hosted zone on AWS, consult the ## Uploading a file -To make the `once` command available you can install it using pip, with the following command: - - $ pip install . - Once the service and the client have been correctly installed and configured, you can upload a local file running the `once` command. - once + poetry run once The URL can be shared to download the file, only once. diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index afcaf1f..0000000 --- a/requirements.txt +++ /dev/null @@ -1,12 +0,0 @@ --e . -aws_cdk.core>=1.45 -aws_cdk.aws_apigatewayv2>=1.45 -aws_cdk.aws_certificatemanager>=1.45 -aws_cdk.aws_cloudformation>=1.45 -aws_cdk.aws_dynamodb>=1.45 -aws_cdk.aws_events>=1.45 -aws_cdk.aws_events_targets>=1.45 -aws_cdk.aws_lambda>=1.45 -aws_cdk.aws_logs>=1.45 -aws_cdk.aws_route53>=1.45 -aws_cdk.aws_s3>=1.45 diff --git a/setup.py b/setup.py deleted file mode 100644 index c378ce3..0000000 --- a/setup.py +++ /dev/null @@ -1,48 +0,0 @@ -import setuptools - - -with open("README.md") as fp: - long_description = fp.read() - - -setuptools.setup( - name="once", - description="A one-time file sharing personal service, running serverless on AWS", - version="0.1.0", - url="https://github.com/domtes/once", - author="Domenico Testa", - author_email="domenico.testa@gmail.com", - long_description=long_description, - long_description_content_type="text/markdown", - - python_requires=">=3.6", - install_requires=[ - "click", - "pygments", - "requests" - ], - - package_dir={'': 'client'}, - py_modules=['once'], - entry_points={ - 'console_scripts': ['once=once:share'] - }, - - classifiers=[ - "Development Status :: 4 - Beta", - - "Intended Audience :: Developers", - - "License :: OSI Approved :: MIT License", - - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - - "Topic :: File Sharing", - "Topic :: Utilities", - - "Typing :: Typed", - ], -)