-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpush_to_pypi.bat
More file actions
53 lines (41 loc) · 876 Bytes
/
Copy pathpush_to_pypi.bat
File metadata and controls
53 lines (41 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@echo off
REM This file requires first to set a file %USERPROFILE%/.pypirc
REM -------------
REM [distutils]
REM index-servers =
REM pypi
REM unpackai
REM [pypi]
REM username = __token__
REM password = # either a user-scoped token or a project-scoped token you want to set as the default
REM [unpackai]
REM repository = https://upload.pypi.org/legacy/
REM username = __token__
REM password = # a project token
REM -------------
@echo on
@echo Cleaning Dist directory
del /Q dist
@echo.
@pause
@echo.
@echo Building
python setup.py sdist bdist_wheel
@echo.
@pause
@echo.
@echo Checking the build
twine check dist/*
@echo.
@pause
@echo.
@echo Pushing to TestPypi
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
@echo.
@pause
@echo.
@echo Pushing to Pypi for real
twine upload --repository unpackai dist/*
@echo.
@pause
@echo.