Skip to content

Commit

Permalink
Delete setup command
Browse files Browse the repository at this point in the history
  • Loading branch information
keisuke-umezawa committed Mar 5, 2024
1 parent a3f6687 commit 7a9a251
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools
pip install --progress-bar off wheel twine
- run: python setup.py sdist bdist_wheel
- run: python -m build
- run: twine check dist/*

- name: Create GitHub release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools
pip install --progress-bar off wheel twine
- run: python setup.py sdist bdist_wheel
- run: python -m buil

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ RUN pip install --upgrade pip setuptools
RUN pip install --progress-bar off PyMySQL[rsa] psycopg2-binary gunicorn optuna-fast-fanova

ADD ./pyproject.toml /usr/src/pyproject.toml
ADD ./setup.py /usr/src/setup.py
ADD ./optuna_dashboard /usr/src/optuna_dashboard
COPY --from=front-builder /usr/src/optuna_dashboard/public/ /usr/src/optuna_dashboard/public/
RUN pip install --progress-bar off .
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ vscode-extension: vscode/assets/bundle.js

.PHONY: sdist
sdist: pyproject.toml $(DASHBOARD_TS_OUT)
python setup.py sdist
python -m build

.PHONY: wheel
wheel: pyproject.toml $(DASHBOARD_TS_OUT)
python setup.py bdist_wheel
python -m build

.PHONY: docs
docs: docs/conf.py $(RST_FILES)
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Please clone the git repository and execute following commands to build sdist pa
# Node.js v16 is required to compile TypeScript files.
$ npm install
$ npm run build:prd
$ python setup.py sdist
$ python -m build
Then you can install it like:

Expand Down

0 comments on commit 7a9a251

Please sign in to comment.