Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

See what happens if you generate a package and copy pasteanother package's files into it #202

Closed
jspaaks opened this issue Apr 20, 2021 · 3 comments
Assignees
Milestone

Comments

@jspaaks
Copy link

jspaaks commented Apr 20, 2021

does it still work for packages that are less than minimal?

@jspaaks
Copy link
Author

jspaaks commented Apr 21, 2021

Or maybe even better, somebody else's project files

@fdiblen fdiblen changed the title See what happens if you generate a package and copy paste howfairis'es files into it See what happens if you generate a package and copy pasteanother package's files into it Apr 21, 2021
@fdiblen fdiblen added this to the 0.4.0 milestone Apr 21, 2021
@eriktks eriktks self-assigned this Apr 22, 2021
@eriktks
Copy link
Member

eriktks commented Apr 22, 2021

Target repository: https://github.com/online-behaviour/machine-learning

This repo had only three files in common with the Python template: README.md, LICENSE and CITATION.cff

Actions:

  1. create new repository structure with cookiecutter
  2. move all newly created files except the three duplicates to existing repository, one-by-one, and add each of them to git
  3. concatenate new README after existing README
  4. edit updated README
  5. commit updated README
  6. commit all other new files
  7. push to Github
$ cookiecutter https://github.com/NLeSC/python-template
  ...
$ cd machine-learning
$ TARGETDIR=/home/erikt/projects/online-behaviour/machine-learning
$ for FILE in * .[a-z]*
  do 
     if [ ! -f $TARGETDIR/$FILE ]
     then
        mv $FILE $TARGETDIR
        cd $TARGETDIR
        git add $FILE
        cd -
     fi
  done
$ ls -a
.   ..   CITATION.cff   LICENSE   README.md
$ cat README.md >> $TARGETDIR/README.md
$ rm CITATION.cff LICENSE README.md
$ cd $TARGETDIR
$ vim README.md
$ git commit -m "included python template README" README.md
$ git commit -m "imported from python template"
$ git push

@eriktks
Copy link
Member

eriktks commented May 3, 2021

PR #243 deals with this

@eriktks eriktks closed this as completed May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants