Skip to content

Commit

Permalink
Src-based folder structure with library in editable mode
Browse files Browse the repository at this point in the history
Remove setup.py in favor of setup.cfg
Add pyproject.toml
  • Loading branch information
frederickjansen committed Feb 2, 2022
1 parent 4c56a7b commit 9dfb379
Show file tree
Hide file tree
Showing 9 changed files with 93 additions and 80 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ name = "pypi"
flake8 = "*"
pytest = "*"
pytest-cov = "*"
b3u = {editable = true, path = "."}
94 changes: 48 additions & 46 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions b3u/__init__.py

This file was deleted.

6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"
36 changes: 34 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
[metadata]
name = b3u
version = 1.2.1
author = Andrei Lapets
author_email = a@lapets.io
description = Utility for extracting Boto3 configuration information and method parameters from AWS resource URIs.
long_description = file: README.rst, LICENSE
long_description_content_type = text/x-rst
url = https://github.com/nthparty/b3u
project_urls =
Bug Tracker = https://github.com/nthparty/b3u/issues
classifiers =
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
License :: OSI Approved :: MIT License
Operating System :: OS Independent

license = MIT
platforms = any

[options]
package_dir =
= src
packages = find:
python_requires = >=3.6

[options.packages.find]
where = src

[flake8]
max-line-length = 119
doctests = True
max-line-length = 120
23 changes: 0 additions & 23 deletions setup.py

This file was deleted.

3 changes: 3 additions & 0 deletions src/b3u/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .b3u import b3u

__all__ = ['b3u', ]
File renamed without changes.
6 changes: 1 addition & 5 deletions b3u_test.py → tests/b3u_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
from b3u.b3u import b3u


def func():
print("hello")
from b3u import b3u


def test_credentials():
Expand Down

0 comments on commit 9dfb379

Please sign in to comment.