Skip to content

Commit

Permalink
Changed python build dist folder to dist_python
Browse files Browse the repository at this point in the history
  • Loading branch information
puehringer committed Apr 5, 2022
1 parent 0ae3977 commit 91f6a84
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 23 deletions.
9 changes: 3 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ jobs:
command: |
. ~/venv/bin/activate
pip list || true
- run:
name: Clear dist folder
command: rm -rf dist && mkdir dist
- run:
name: Linting
command: |
Expand All @@ -55,14 +52,14 @@ jobs:
name: API Doc generation
command: |
. ~/venv/bin/activate
make mkdocs
make documentation
- run:
name: Build wheel
command: |
. ~/venv/bin/activate
make build
- store_artifacts:
path: dist
path: dist_python
destination: dist-python
- persist_to_workspace:
root: ~/.
Expand Down Expand Up @@ -90,7 +87,7 @@ jobs:
name: Publish package
command: |
. ~/venv/bin/activate
twine upload dist/*
twine upload dist_python/*
web-build:
executor: node-executor
steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/build/
/storybook-static/
/dist/tsBuildInfoFile
/dist_python/
/lib/
*.egg-info/
*.egg
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ lint:
test:
pytest $(pkg_src)

.PHONEY: mkdocs ## Shortcut for mkdocs command
mkdocs:
.PHONEY: documentation ## Generate docs
documentation:
mkdocs build

.PHONY: install ## Install the requirements
Expand All @@ -43,12 +43,12 @@ develop:

.PHONY: build ## Build a wheel
build:
python setup.py sdist bdist_wheel
python setup.py sdist bdist_wheel --dist-dir dist_python

.PHONY: publish ## Publish the ./dist/* using twine
publish:
pip install twine==3.8.0
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
twine upload --repository-url https://upload.pypi.org/legacy/ dist_python/*

.PHONY: help ## Display this message
help:
Expand Down
8 changes: 4 additions & 4 deletions docs/development/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ Use `make test` to run the available test-suites using pytest.

### Commands

* `make mkdocs new [dir-name]` - Create a new project.
* `make mkdocs serve` - Start the live-reloading docs server.
* `make mkdocs build` - Build the documentation site.
* `make mkdocs -h` - Print help message and exit.
* `mkdocs new [dir-name]` - Create a new project.
* `mkdocs serve` - Start the live-reloading docs server.
* `mkdocs build` - Build the documentation site.
* `mkdocs -h` - Print help message and exit.

### Project layout

Expand Down
9 changes: 0 additions & 9 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
[bdist_wheel]
# This flag says that the code is written to work on both Python 2 and Python
# 3. If at all possible, it is good practice to do this. If you cannot, you
# will need to generate wheels for each Python version that you support.
universal=1

[aliases]
test=pytest

[flake8]
max-line-length=140
extend-ignore=E203,E111,E114,E501,E121,E123,E126,E226,E24,E704
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def requirements(file):
'Programming Language :: Python :: 3.10'
],

python_requires='>=3',

# You can just specify the packages manually here if your project is
# simple. Or you can use find_packages().
packages=find_packages(exclude=['docs', 'tests*']),
Expand Down

0 comments on commit 91f6a84

Please sign in to comment.