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

Giving love (updates) #44

Closed
wants to merge 3 commits into from
Closed

Conversation

Nosferican
Copy link
Contributor

  • Use OSI standardized license text so it is machine detectable by GitHub/Licensee
  • Update CI by including Windows (x64/x86) through Travis
  • Update Codecov example (is codecov enabled for the repo?)
  • Using current Pkg.jl format for test/docs stages
  • Added example of using/import statements
  • Added Weave for docs

- Use OSI standardized license text so it is machine detectable by GitHub/Licensee
- Update CI by including Windows (x64/x86) through Travis
- Update Codecov example
- Using current Pkg.jl format for test/docs stages
- Added example of using/import statements
- Added Weave for docs
@StefanKarpinski
Copy link
Member

  • Use OSI standardized license text so it is machine detectable by GitHub/Licensee

This now doesn't match what is generated by PkgTemplates and Pkg.generate, however.

Copy link
Member

@KristofferC KristofferC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I started reviewing and sorry for sounding negative but I must say I think this tries to do a bit too much and is a bit too opinionated (e.g. with the docs/src in gitignore and weaving into it).

.gitignore Outdated
/docs/build/
/docs/Manifest.toml
docs/build
docs/src
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, you are generating from weave into it? That is very non-standard and I don't think it should be in here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine and fair. I think it is a cool practice that enhances Documenter.jl, but is fine if we keep it without it.

julia:
- 1.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Errors the test/Project.toml / docs/Project.toml. Since the example is avoiding the experimental and will do the LTS flavor I can add it back.


after_success:
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';
# - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove coverage?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is no longer needed. Missed adding the line codecov: true which is the updated way.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if it's still the case, but for a while codecov: true/coveralls: true caused issues with how builds report failure (as errors instead of failures).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to check that since Coverage.jl has their documentation indicating that method currently.

@@ -0,0 +1,6 @@
site_name: Example.jl
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not add this, using the Documenter HTML is enough.

docs/make.jl Outdated

makedocs(modules = [Example], sitename = "Example.jl")
for file ∈ readdir(joinpath(dirname(pathof(Econometrics)), "..", "docs", "jmd"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like it would only confuse people. Like you need to do some weave stuff to run the documentation. Also weave is a bit of a heavy / complicated dependency.

- 1.2
- nightly

# # Uncomment the following lines to allow failures on nightly julia
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should packages usually test against nightly?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, though it would make sense to allow failures on nightlies by default. At any rate it's better to show how to do it.

notifications:
email: false

#script: # the default script is equivalent to the following
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line can be removed but the subsequent line seems pretty useful.

@@ -0,0 +1,2 @@
[deps]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer us to keep the target stuff in the Project because this way of doing it is explicitly marked experimental.

- Revert to `extra`/`targets`
- Remove Weave
- Delete redundant makedocs.yml
- Added Julia 1.0 since extra/targets is supported for CI
- Coverage is given by codecov: true
@Nosferican
Copy link
Contributor Author

We should make the changes to PkgTemplates and Pkg.generate to use the OSI standard texts rather a custom text which is not machine detectable.

Fixed a missing using
@codecov-io
Copy link

codecov-io commented Aug 20, 2019

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@nalimilan
Copy link
Member

Can you split the PR into smaller pieces? That will help merging the less controversial changes soon. I'd like the question of the standard format to use for LICENSE.md to be settled here before switching other packages (as you propose in your PRs).

@Nosferican
Copy link
Contributor Author

I have split the changes into #45, #46, #47, and #48. I can open another one for the using/import example since it is an issue that comes up often in the Slack.

@ViralBShah ViralBShah closed this Sep 26, 2024
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

Successfully merging this pull request may close these issues.

7 participants