|
|
## Migrating to git.passcal.nmt.edu
|
|
|
### Task 1: Getting everything into git:
|
|
|
**Don't** edit any code in this step!
|
|
|
|
|
|
Example here is for bline
|
|
|
##### Get the latest version from svn (if you need help, just ask)
|
|
|
##### Find the latest version of the program in svn:
|
|
|
```sh
|
|
|
$ grep VERSION *
|
|
|
bline.py:PROG_VERSION = "2017.006"
|
|
|
```
|
|
|
##### Run cookiecutter use the name of the program & the version found above (outside of svn in your working dir)
|
|
|
```
|
|
|
$ cookiecutter http://git.passcal.nmt.edu/passoft/cookiecutter.git
|
|
|
project_name [Python Boilerplate]: bline
|
|
|
project_slug [bline]:
|
|
|
project_short_description [Python Boilerplate contains all ...
|
|
|
the boilerplate you need to create a Python package.]: Download data from Baler14.
|
|
|
version [2018.135]: 2017.006
|
|
|
```
|
|
|
##### cd into the dir cookiecutter just made:
|
|
|
```sh
|
|
|
$ cd bline/
|
|
|
$ ls
|
|
|
AUTHORS.rst MANIFEST.in docs tests
|
|
|
CONTRIBUTING.rst Makefile requirements_dev.txt tox.ini
|
|
|
HISTORY.rst README.rst setup.cfg
|
|
|
LICENSE bline setup.py
|
|
|
```
|
|
|
##### Copy the source from svn into the bline within the above bline dir
|
|
|
```
|
|
|
$ cp -r /Users/lloyd/work/workMOONBASE/software/passoft/src/bline/* bline/
|
|
|
(base) moonbase:bline lloyd$ ls bline/
|
|
|
__init__.py bline bline.py
|
|
|
```
|
|
|
the dir should now look like this:
|
|
|
```
|
|
|
$ tree
|
|
|
.
|
|
|
├── AUTHORS.rst
|
|
|
├── CONTRIBUTING.rst
|
|
|
├── HISTORY.rst
|
|
|
├── LICENSE
|
|
|
├── MANIFEST.in
|
|
|
├── Makefile
|
|
|
├── README.rst
|
|
|
├── bline
|
|
|
│ ├── __init__.py
|
|
|
│ ├── bline
|
|
|
│ └── bline.py
|
|
|
├── docs
|
|
|
│ ├── Makefile
|
|
|
│ ├── authors.rst
|
|
|
│ ├── conf.py
|
|
|
│ ├── contributing.rst
|
|
|
│ ├── history.rst
|
|
|
│ ├── index.rst
|
|
|
│ ├── installation.rst
|
|
|
│ ├── make.bat
|
|
|
│ ├── readme.rst
|
|
|
│ └── usage.rst
|
|
|
├── requirements_dev.txt
|
|
|
├── setup.cfg
|
|
|
├── setup.py
|
|
|
├── tests
|
|
|
│ ├── __init__.py
|
|
|
│ └── test_bline.py
|
|
|
└── tox.ini
|
|
|
3 directories, 26 files
|
|
|
```
|
|
|
##### 6. Open https://git.passcal.nmt.edu/passoft in a browser
|
|
|
New project.
|
|
|
|
|
|
project name: bline
|
|
|
|
|
|
Project description (optional): Download data from Baler14. (same as description in cookiecutter)
|
|
|
|
|
|
Visibility Level: Internal
|
|
|
|
|
|
Create project
|
|
|
|
|
|
Copy the commands in the section 'Existing folder'
|
|
|
|
|
|
##### Run the above commands in the toplevel bline dir ( the one with setup.py ):
|
|
|
```sh
|
|
|
$ ls
|
|
|
AUTHORS.rst Makefile setup.cfg
|
|
|
CONTRIBUTING.rst README.rst setup.py
|
|
|
HISTORY.rst bline tests
|
|
|
LICENSE docs tox.ini
|
|
|
MANIFEST.in requirements_dev.txt
|
|
|
$ git init
|
|
|
Initialized empty Git repository in /Users/lloyd/code/tmp/bline/.git/
|
|
|
$ git remote add origin git@git.passcal.nmt.edu:passoft/bline.git
|
|
|
$ git add .
|
|
|
$ git commit -m "Initial commit"
|
|
|
[master (root-commit) 48c05f2] Initial commit
|
|
|
29 files changed, 2357 insertions(+)
|
|
|
create mode 100644 .editorconfig
|
|
|
create mode 100644 .gitignore
|
|
|
create mode 100644 .gitlab/issue_templates/Bug.md
|
|
|
create mode 100644 AUTHORS.rst
|
|
|
create mode 100644 CONTRIBUTING.rst
|
|
|
create mode 100644 HISTORY.rst
|
|
|
create mode 100644 LICENSE
|
|
|
create mode 100644 MANIFEST.in
|
|
|
create mode 100644 Makefile
|
|
|
create mode 100644 README.rst
|
|
|
create mode 100644 bline/__init__.py
|
|
|
create mode 100755 bline/bline
|
|
|
create mode 100755 bline/bline.py
|
|
|
create mode 100644 docs/Makefile
|
|
|
create mode 100644 docs/authors.rst
|
|
|
create mode 100755 docs/conf.py
|
|
|
create mode 100644 docs/contributing.rst
|
|
|
create mode 100644 docs/history.rst
|
|
|
create mode 100644 docs/index.rst
|
|
|
create mode 100644 docs/installation.rst
|
|
|
create mode 100644 docs/make.bat
|
|
|
create mode 100644 docs/readme.rst
|
|
|
create mode 100644 docs/usage.rst
|
|
|
create mode 100644 requirements_dev.txt
|
|
|
create mode 100644 setup.cfg
|
|
|
create mode 100644 setup.py
|
|
|
create mode 100644 tests/__init__.py
|
|
|
create mode 100644 tests/test_bline.py
|
|
|
create mode 100644 tox.ini
|
|
|
$ git push -u origin master
|
|
|
Counting objects: 36, done.
|
|
|
Delta compression using up to 8 threads.
|
|
|
Compressing objects: 100% (30/30), done.
|
|
|
Writing objects: 100% (36/36), 25.45 KiB | 0 bytes/s, done.
|
|
|
Total 36 (delta 0), reused 0 (delta 0)
|
|
|
To git.passcal.nmt.edu:passoft/bline.git
|
|
|
* [new branch] master -> master
|
|
|
Branch master set up to track remote branch master from origin.
|
|
|
```
|
|
|
### Done! The source is now in PASSCAL's git repo.
|
|
|
You can refresh the browser and see your work
|
|
|
|
|
|
Testing and adapting will happen later on a different branch.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|