Skip to content

Commit 5c1a99a

Browse files
authored
infrastructure cleanup: refactor dependencies, linter configuration (#34)
1 parent c2c102f commit 5c1a99a

4 files changed

Lines changed: 39 additions & 34 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ install: ## Install dependencies in local virtualenv folder
99
(test `which virtualenv` || $(PIP_CMD) install --user virtualenv) && \
1010
(test -e $(VENV_DIR) || virtualenv $(VENV_OPTS) $(VENV_DIR)) && \
1111
($(VENV_RUN) && $(PIP_CMD) install --upgrade pip) && \
12-
(test ! -e requirements.txt || ($(VENV_RUN); $(PIP_CMD) install -r requirements.txt))
12+
(test ! -e setup.cfg || ($(VENV_RUN); $(PIP_CMD) install .))
1313

1414
publish: ## Publish the library to the central PyPi repository
1515
# build and upload archive
@@ -21,7 +21,7 @@ test: ## Run automated tests
2121
$(VENV_RUN); DEBUG=$(DEBUG) PYTHONPATH=`pwd` nosetests --with-coverage --logging-level=WARNING --nocapture --no-skip --exe --cover-erase --cover-tests --cover-inclusive --cover-package=localstack_client --with-xunit --exclude='$(VENV_DIR).*' .
2222

2323
lint: ## Run code linter to check code style
24-
($(VENV_RUN); pep8 --max-line-length=100 --ignore=E128 --exclude=node_modules,legacy,$(VENV_DIR),dist .)
24+
($(VENV_RUN); pycodestyle --max-line-length=100 --ignore=E128 --exclude=node_modules,legacy,$(VENV_DIR),dist .)
2525

2626
clean: ## Clean up virtualenv
2727
rm -rf $(VENV_DIR)

requirements.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.cfg

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[metadata]
2+
name = localstack-client
3+
version = 1.29
4+
url = https://github.com/localstack/localstack-python-client
5+
author = LocalStack Team
6+
author_email = info@localstack.cloud
7+
description = A lightweight Python client for LocalStack.
8+
license = Apache License 2.0
9+
classifiers =
10+
Programming Language :: Python :: 2
11+
Programming Language :: Python :: 2.6
12+
Programming Language :: Python :: 2.7
13+
Programming Language :: Python :: 3
14+
Programming Language :: Python :: 3.3
15+
Programming Language :: Python :: 3.4
16+
Programming Language :: Python :: 3.6
17+
Programming Language :: Python :: 3.7
18+
Programming Language :: Python :: 3.8
19+
Programming Language :: Python :: 3.9
20+
License :: OSI Approved :: Apache Software License
21+
Topic :: Software Development :: Testing
22+
23+
[options]
24+
packages =
25+
localstack_client
26+
27+
install_requires =
28+
boto3
29+
six
30+
31+
[options.extras_require]
32+
# Dependencies to run the tests
33+
test =
34+
coverage
35+
pycodestyle
36+
nose

setup.py

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,4 @@
11
#!/usr/bin/env python
22

33
from setuptools import setup
4-
5-
if __name__ == '__main__':
6-
7-
setup(
8-
name='localstack-client',
9-
version='1.29',
10-
description='A lightweight Python client for LocalStack.',
11-
author='LocalStack Team',
12-
author_email='info@localstack.cloud',
13-
url='https://github.com/localstack/localstack-python-client',
14-
packages=['localstack_client'],
15-
package_data={},
16-
data_files={},
17-
install_requires=["boto3"],
18-
license="Apache License 2.0",
19-
classifiers=[
20-
"Programming Language :: Python :: 2",
21-
"Programming Language :: Python :: 2.6",
22-
"Programming Language :: Python :: 2.7",
23-
"Programming Language :: Python :: 3",
24-
"Programming Language :: Python :: 3.3",
25-
'Programming Language :: Python :: 3.4',
26-
'Programming Language :: Python :: 3.6',
27-
'Programming Language :: Python :: 3.7',
28-
'Programming Language :: Python :: 3.8',
29-
'Programming Language :: Python :: 3.9',
30-
"License :: OSI Approved :: Apache Software License",
31-
"Topic :: Software Development :: Testing",
32-
]
33-
)
4+
setup()

0 commit comments

Comments
 (0)