-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert setup.py to setup.cfg (#1753)
- Loading branch information
1 parent
84c97a4
commit 4901de6
Showing
12 changed files
with
111 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
* | ||
!dist | ||
!platform_api.egg-info | ||
!alembic | ||
!alembic.ini | ||
**/*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,8 +32,7 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-py-3.8.10-${{ hashFiles('requirements/*.txt') }}-${{ | ||
hashFiles('setup.py') }} | ||
key: ${{ runner.os }}-py-3.8.10-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg') }} | ||
- name: Install dependencies | ||
run: make setup | ||
- name: Lint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ARG PYTHON_VERSION=3.8.12 | ||
ARG PYTHON_BASE=buster | ||
|
||
FROM python:${PYTHON_VERSION} AS installer | ||
|
||
ENV PATH=/root/.local/bin:$PATH | ||
|
||
# Copy to tmp folder to don't pollute home dir | ||
RUN mkdir -p /tmp/dist | ||
COPY dist /tmp/dist | ||
|
||
RUN ls /tmp/dist | ||
RUN pip install --user --find-links /tmp/dist platform-api | ||
|
||
FROM python:${PYTHON_VERSION}-${PYTHON_BASE} AS service | ||
|
||
LABEL org.opencontainers.image.source = "https://github.com/neuro-inc/platform-api" | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=installer /root/.local/ /root/.local/ | ||
COPY alembic.ini alembic.ini | ||
COPY alembic alembic | ||
|
||
ENV PATH=/root/.local/bin:$PATH | ||
ENV NP_API_PORT=8080 | ||
EXPOSE $NP_API_PORT | ||
|
||
CMD platform-api |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=45", | ||
"wheel", | ||
"setuptools_scm>=6.2", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
git_describe_command = "git describe --dirty --tags --long --match v*.*.*" | ||
|
||
[tool.black] | ||
exclude = ''' | ||
/( | ||
\.git | ||
| venv | ||
| __pycache__ | ||
| \.tox | ||
)/ | ||
''' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters